// 在axios请求拦截器中添加：
instance.interceptors.request.use(config => {
  const userStore = useUserStore()
  if (userStore.userInfo?.token) {
    config.headers.Authorization = `Bearer ${userStore.userInfo.token}`
  }
  return config
}, error => Promise.reject(error))